package com.springboot.springautowired.circularReference.construct;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * @author mac
 * @date 2021/9/15 11:22 上午
 */
@Lazy//解决构造器循环依赖问题的方式
@Service
public class TestServiceII {
    private TestServiceI testServiceI;

    public TestServiceII(TestServiceI testServiceI) {
        this.testServiceI = testServiceI;
    }
}
